<script setup lang="ts">
defineProps<{
  item: FlowPathTemplateApi.AttributeExtendDto;
}>();
</script>
<!-- 4-多行输入框 -->
<template>
  <!--只读 -->
  <template v-if="item.readonlyAble === 1">
    <nut-cell :title="item.attributeName" :desc="item.attributeValue" />
  </template>
  <!--编辑 -->
  <template v-else>
    <nut-form-item
      :label="item.attributeName"
      :required="item.attributeRequired === 1"
      :label-width="120"
    >
      <nut-textarea
        :placeholder="item.tips ? item.tips : '请填写'"
        rows="8"
        limit-show
        text-align="right"
        max-length="200"
        v-model="item.attributeValue"
      />
    </nut-form-item>
  </template>
</template>
